cmake_minimum_required(VERSION 2.8)

message("-- Project: stdcrt")

#find_package(Clang REQUIRED)

file(GLOB core_src			"core/*.c")
file(GLOB event_src			"event/*.c")
file(GLOB event_module_src	"event/modules/ngx_epoll_module.c")
file(GLOB unix_src			"os/unix/*.c")
file(GLOB exe_src			"*.c")


add_executable(main ${core_src} ${event_src} ${event_module_src} ${unix_src} ${exe_src})


include_directories(
		${PROJECT_SOURCE_DIR}/include
		${PROJECT_SOURCE_DIR}/crt)

include_directories(
		/usr/local/include
		/opt/local/include
		/usr/include
		${PROJECT_SOURCE_DIR}/
		${PROJECT_SOURCE_DIR}/os/unix/
		${PROJECT_SOURCE_DIR}/core/)
		
set_target_properties(main PROPERTIES OUTPUT_NAME "main")


















